<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<%@ taglib prefix="s" uri="/struts-tags" %> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  
    <base href="<%=basePath%>">   
    <title>My JSP 'projectList.jsp' starting page</title>  
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>  
  	<s:debug></s:debug>
  	<h2>申请中的项目</h2>
   	<table border="1">
   		<tr>
   			<td width="100">项目ID</td>
   			<td width="100">项目名</td>
   			<td width="50">状态</td>
   			<td width="50">开始时间</td>
   			<td width="50">截止时间</td>
   			<td width="50">研究领域</td>
   			<td width="50">编辑</td>
   			<td width="50">删除</td>
   		</tr>
   		
   		<s:iterator value="#request.teacherproject" id="pap">
   		<tr>
   			<td><a href="projectAction!showproject?proid=<s:property value='#pap.project.pid'/>">
   			<s:property value="#pap.project.pid"/></a></td>
   			<td><s:property value="#pap.project.name"></s:property></td>
   			<td><s:property value="#pap.proTime.status"></s:property></td>
   			<td><fmt:formatDate value="${pap.proTime.startTime}"  pattern="yyyy-MM-dd HH:mm"/> </td>   			
   			<td><s:property value="xxxxxx"></s:property></td>
   			<td><s:property value="#pap.project.field"></s:property></td>
   			<td><a href="projectAction!editProject?Pid=<s:property  escape="false" value='#pap.project.pid'/>">编辑</a></td>		
   			<td><a href="projectAction!deleteTeacherProject?Pid=<s:property  escape="false" value='#pap.project.pid'/>" >删除</a></td>
   			
   		</tr>
   		
   		</s:iterator>
   	</table>
   	<hr>
   	
   	
  	
  	

  </body>
</html>
